<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------

return [
    // 缓存配置为复合类型
    'type'  =>  'complex', 
    'default'	=>	[
      'type'	=>	'redis',
      // 全局缓存有效期（0为永久有效）
      'expire'=>  0, 
      // 缓存前缀
      'prefix'=>  'mailList:',
       // 缓存目录
      'path'  =>  '../runtime/cache/',
    ],

    // redis缓存
    'redis'   =>  [
        // 驱动方式
        'type'       => 'redis',
        // 缓存有效期 0表示永久缓存
        'expire'     => 3600,
        // 序列化机制 例如 ['serialize', 'unserialize']
        'serialize'  => [],
        // 缓存前缀
        'prefix'     => 'mailList:',
        // 主机
        'host'       => '127.0.0.1',
        // 端口
        'port'       => 6379,
        // 密码
        'password'   => ''
    ],   
];
